package BehavioralPattern.Memento;

import java.util.ArrayList;

public class UpdateMementoCaretaker {
    private ArrayList<ChessmanMemento> mementoArrayList = new ArrayList<ChessmanMemento>();

    public ChessmanMemento getMemento(int i) {
        return (ChessmanMemento)mementoArrayList.get(i);
    }

    public void setMemento(ChessmanMemento memento) {
        mementoArrayList.add(memento);
    }
}
